package com.example.dockerdemo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @PACKAGE_NAME: com.example.dockerdemo.controller
 * @NAME: InterceptorConytoller
 * @description:
 * @DATE: 2024/5/14
 * @USER: fz
 **/
@RestController
@RequestMapping("/test")
public class InterceptorController {

    @PostMapping("/test")
    public String test(@RequestBody String user)
    {
        return user;
    }

    @PostMapping("black/name")
    public String blackName(@RequestBody String name)
    {
        return name;
    }

    @PostMapping("write/name")
    public String writeName(@RequestBody String name)
    {
        return name;
    }

    @GetMapping("black/name")
    public String blackNameGet(String name)
    {
        return name;
    }
}
